//
//  CollectShareInBuyView.m
//  LiangYa_BObject
//
//  Created by dllo on 15/10/31.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "CollectShareInBuyView.h"

@implementation CollectShareInBuyView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.layer.borderColor = [[UIColor redColor] CGColor];
        self.layer.borderWidth = 2;
        self.layer.cornerRadius = 5;
        
        self.shareBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        _shareBtn.backgroundColor = [UIColor redColor];
        _shareBtn.frame = CGRectMake(self.frame.size.width - 180, 0, 100, 30);
        _shareBtn.center = CGPointMake(self.frame.size.width - 170, self.frame.size.height / 2);
        _shareBtn.layer.cornerRadius = 15;
        _shareBtn.layer.borderWidth = 2;
        _shareBtn.layer.borderColor = [[UIColor whiteColor] CGColor];
        [_shareBtn setTitle:@"分享" forState:UIControlStateNormal];
        [_shareBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_shareBtn];
        
        self.collectBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        _collectBtn.backgroundColor = [UIColor redColor];
        _collectBtn.frame = CGRectMake(self.frame.size.width - 90, 0, 100, 30);
        _collectBtn.center = CGPointMake(self.frame.size.width - 60, self.frame.size.height / 2);
        _collectBtn.layer.cornerRadius = 15;
        _collectBtn.layer.borderColor = [[UIColor whiteColor] CGColor];
        _collectBtn.layer.borderWidth = 2;
        [_collectBtn setTitle:@"收藏" forState:UIControlStateNormal];
        [_collectBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_collectBtn];
        
    }
    return self;
}

@end
